package juhouse.biz.kc.action;
import javax.servlet.http.HttpServletRequest;
import juhouse.biz.kc.dao.ReportDao;
import org.apache.struts.actions.DispatchAction;

public class ReportAction  extends DispatchAction{

	
	public StringBuffer getReportInfo(HttpServletRequest request)
	{	
		String reportId="0";
		reportId=request.getParameter("reportId");
		ReportDao dao  = new ReportDao();
		StringBuffer strlist = dao.getReportData(reportId,request);
		return strlist;
	}
	
	public StringBuffer getReportData(HttpServletRequest request,String reportId)
	{	
		ReportDao dao  = new ReportDao();
		System.out.println(reportId);
		
		StringBuffer strlist = dao.getReportDataOnly(reportId,request);
		return strlist;
	}
	
	

}
